package com.cyy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cyy.common.pojo.vo.api.ApiMessageVo;
import com.cyy.common.pojo.entity.Comment;
import com.cyy.common.pojo.req.CommentAddReq;
import com.cyy.common.pojo.resp.CommentTreeResp;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author 曹云友
 * @since 2024-04-01
 */
public interface CommentService extends IService<Comment> {

    CommentTreeResp treeByType(String sourceType, Long articleId);

    void addComment(CommentAddReq req);

    void deleteComment(String ids);

    IPage<ApiMessageVo> queryMessagePage(Integer startIndex);

    void clickLike(Integer commentId);

    void clickDislike(Integer commentId);
}
